package com.our.sys.project1.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

/**
 * 报损记账
 * @author acer
 *
 */
@Entity
@Table(name = "C_DamageApp")
public class DamageApp implements Serializable {

    private static final long serialVersionUID = -7666086167284244565L;

    @ViewField
    private Long id;
    @ViewField(header = "是否记账", width = 150, align = "left")
    private String isAccount;
    @ViewField(header = "核算年月", width = 150, align = "left")
    private String accountDate;
    @ViewField(header = "报损单号", width = 150, align = "left")
    private String appNo;
    @ViewField(header = "报损日期", width = 150, align = "left")
    private String appTime;
    @ViewField(header = "原单号", width = 150, align = "left")
    private String oldNumber;
    @ViewField(header = "原单日期", width = 150, align = "left")
    private String oldTime;
    @ViewField(header = "报损总金额", width = 150, align = "left")
    private BigDecimal money;
    @ViewField(header = "批准人", width = 150, align = "left")
    private String checkWho;
    @ViewField(header = "记账人", width = 150, align = "left")
    private String accountWho;
    @ViewField(header = "记账时间", width = 150, align = "left")
    private String accountTime;
    @ViewField(header = "损坏原因", width = 150, align = "left")
    private String damageNote;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "C_DamageApp")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIsAccount() {
        return isAccount;
    }

    public void setIsAccount(String isAccount) {
        this.isAccount = isAccount;
    }

    public String getAccountDate() {
        return accountDate;
    }

    public void setAccountDate(String accountDate) {
        this.accountDate = accountDate;
    }

    public String getAppNo() {
        return appNo;
    }

    public void setAppNo(String appNo) {
        this.appNo = appNo;
    }

    public String getAppTime() {
        return appTime;
    }

    public void setAppTime(String appTime) {
        this.appTime = appTime;
    }

    public String getOldNumber() {
        return oldNumber;
    }

    public void setOldNumber(String oldNumber) {
        this.oldNumber = oldNumber;
    }

    public String getOldTime() {
        return oldTime;
    }

    public void setOldTime(String oldTime) {
        this.oldTime = oldTime;
    }


    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getCheckWho() {
        return checkWho;
    }

    public void setCheckWho(String checkWho) {
        this.checkWho = checkWho;
    }

    public String getAccountWho() {
        return accountWho;
    }

    public void setAccountWho(String accountWho) {
        this.accountWho = accountWho;
    }

    public String getAccountTime() {
        return accountTime;
    }

    public void setAccountTime(String accountTime) {
        this.accountTime = accountTime;
    }

    public String getDamageNote() {
        return damageNote;
    }

    public void setDamageNote(String damageNote) {
        this.damageNote = damageNote;
    }

}
